<?php

// 有效期  作用范围

// setcookie("name",1000);
// setcookie("xbs","dsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdafdsfgjhsdakfjlha;kdjsflkjsadkfljlkdsajflksdaf");
// setcookie("aaa",serialize(['name'=>'xbs','age'=>18]));

// setcookie("age",18,time()-3600,'/');

// setcookie("age",18,time()-3600,'/');

// setcookie("age",18,time()-3600,'/');

// setcookie("age",18,time()-3600,'/');


session_start();

$_SESSION['name'] ="xxbs";
$_SESSION['age'] ="18";
$_SESSION['sex'] ="男";
$_SESSION['sex'] ="男";


setcookie(session_name(),session_id(),time()+7*86400);
